package variables

import (
	"github.com/go-redis/redis"
	"gorm.io/gorm"
	"shop-common/library/config"
	"shop-common/library/logger"
)

var (
	App *WEBApplication
	// RedisConn is a global variables for cache connect.
	RedisConn *redis.Client
	// GORM_DBEngine is a global variables for mysql connect.
	GormDB func() *gorm.DB
	// FrameworkLogger is a global var for Framework log
	//FrameworkLogger *zap.Logger
	// ErrLogger is a global variables for application to log err msg.
	//ErrLogger *zap.Logger
	// AccessLogger is a global variables for application to log access log
	//AccessLogger *zap.Logger
	// BusinessLogger is a global variables for application to log business log
	//BusinessLogger *zap.Logger
	// service
	AppDebug      bool
	LoggerSetting *config.Logger
	MysqlSetting  *config.Mysql
	RedisSetting  *config.Redis
	ZoneSetting   *config.Zone
	TokenSetting  *config.Token

	//todo 日志升级版
	Logger *logger.LoggerContext

	GlobalRolePermission map[uint][]string
)
